/*
 * CSocketHolder.java
 *
 * Copyright (c) 2009 Giles Millward (Manigra). All rights reserved.
 *
 * This file is part of JRogueDPS.
 *
 * JRogueDPS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JRogueDPS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JRogueDPS.  If not, see <http://www.gnu.org/licenses/>.
 */

package geardatabase;

import geardatabase.CGemType.GemType;

/**
 *
 * @author gmillward
 */
public class CSocketHolder {

    private GemType m_socketType;

    CSocketHolder(GemType p_socket)
    {
        m_socketType = p_socket;
    }


    CSocketHolder(String p_socketType)
    {
        m_socketType = CGemType.getGemType(p_socketType);
    }

    public GemType getSocketType()
    {
        return m_socketType;
    }

    public void setSocketType(GemType p_socketType)
    {
        m_socketType = p_socketType;
    }

    public void setSocketType(String p_socketName)
    {
        m_socketType = CGemType.getGemType(p_socketName);
    }


}
